// -----------------------------------------------------------------------------
// Generate By Furion Tools v2.2.6                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;

namespace Purchasing.Core
{
    public partial class UfTenderApproval : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<UfTenderApproval, MasterDbContextLocator>
    {
    
        public int Id { get; set; }
        public int? RequestId { get; set; }
        public int? Formmodeid { get; set; }
        public int? Modedatacreater { get; set; }
        public int? Modedatacreatertype { get; set; }
        public string Modedatacreatedate { get; set; }
        public string Modedatacreatetime { get; set; }
        public int? Lrdw { get; set; }
        public int? Lrbm { get; set; }
        public int? Lrry { get; set; }
        public string Lrrq { get; set; }
        public int? Zbpl { get; set; }
        public int? Zbfs { get; set; }
        public int? Cglx { get; set; }
        public int? Htlx { get; set; }
        public int? Zbzz { get; set; }
        public string Syxm { get; set; }
        public string Zbmc { get; set; }
        public decimal? Gsje { get; set; }
        public int? Jbry { get; set; }
        public int? Bzj { get; set; }
        public string Modeuuid { get; set; }
        public string Zbbh { get; set; }
    
        public void Configure(EntityTypeBuilder<UfTenderApproval> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.ToTable("uf_tenderApproval");

                entityBuilder.HasIndex(e => e.Formmodeid, "uf_formmodeid_1602572932897");

                entityBuilder.Property(e => e.Id).HasColumnName("id");

                entityBuilder.Property(e => e.Bzj).HasColumnName("bzj");

                entityBuilder.Property(e => e.Cglx).HasColumnName("cglx");

                entityBuilder.Property(e => e.Formmodeid).HasColumnName("formmodeid");

                entityBuilder.Property(e => e.Gsje)
                    .HasColumnType("decimal(38, 2)")
                    .HasColumnName("gsje");

                entityBuilder.Property(e => e.Htlx).HasColumnName("htlx");

                entityBuilder.Property(e => e.Jbry).HasColumnName("jbry");

                entityBuilder.Property(e => e.Lrbm).HasColumnName("lrbm");

                entityBuilder.Property(e => e.Lrdw).HasColumnName("lrdw");

                entityBuilder.Property(e => e.Lrrq)
                    .HasMaxLength(10)
                    .IsUnicode(false)
                    .HasColumnName("lrrq")
                    .IsFixedLength(true);

                entityBuilder.Property(e => e.Lrry).HasColumnName("lrry");

                entityBuilder.Property(e => e.Modedatacreatedate)
                    .HasMaxLength(10)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatedate");

                entityBuilder.Property(e => e.Modedatacreater).HasColumnName("modedatacreater");

                entityBuilder.Property(e => e.Modedatacreatertype).HasColumnName("modedatacreatertype");

                entityBuilder.Property(e => e.Modedatacreatetime)
                    .HasMaxLength(8)
                    .IsUnicode(false)
                    .HasColumnName("modedatacreatetime");

                entityBuilder.Property(e => e.Modeuuid)
                    .HasMaxLength(100)
                    .IsUnicode(false)
                    .HasColumnName("MODEUUID");

                entityBuilder.Property(e => e.RequestId).HasColumnName("requestId");

                entityBuilder.Property(e => e.Syxm)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("syxm");

                entityBuilder.Property(e => e.Zbbh)
                    .HasMaxLength(100)
                    .IsUnicode(false)
                    .HasColumnName("zbbh");

                entityBuilder.Property(e => e.Zbfs).HasColumnName("zbfs");

                entityBuilder.Property(e => e.Zbmc)
                    .HasMaxLength(50)
                    .IsUnicode(false)
                    .HasColumnName("zbmc");

                entityBuilder.Property(e => e.Zbpl).HasColumnName("zbpl");

                entityBuilder.Property(e => e.Zbzz).HasColumnName("zbzz");
        }

    }
}
